package com.gaofeng.day11;

/**
 * @author gaofeng
 * @date 2024-12-22 - 21:55
 */
public class demo12 {
    public static void main(String[] args) {
        int[] arr = {1,2,3,4,5,6,7,8,10};
        boolean flag = isExist(arr,86);
        System.out.println(flag);
    }

    public static boolean isExist(int[] arr,int number) {
        for (int i = 0; i < arr.length; i++) {
             if(number == arr[i]){
                 return true;
             }
        }
        return false;
    }
}
